package com.yumeng.framework.core.mvc.filter;

import jakarta.servlet.*;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * 测试Filter
 * @author wxd
 * @date 2024/6/7 下午3:21
 */
@Slf4j
public class TestFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        log.debug("执行TestFilter::init");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.debug("执行TestFilter::doFilter");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {
        log.debug("执行TestFilter::destroy");
    }
}
